module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8081',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/api'
        }
      },
      '/ws': {
        target: 'ws://localhost:8081',
        ws: true,
        changeOrigin: true,
        logLevel: 'debug'
      }
    },
    client: {
      webSocketTransport: 'ws',
      webSocketURL: {
        hostname: 'localhost',
        pathname: '/ws',
        port: 8080
      }
    }
  }
} 